package org.csmz.class2333.duotai3;

public class Example15 {
    public static void main(String[] args){
        Animal animal = new Animal();
        if (animal instanceof Dog) {
            Dog dog = (Dog) animal;
            dog.houseKeep();
        } else {
            System.out.println("对象整形不合法");
        }
    }
}
